<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
 
	include_once("conexao.php");
	
	if(isset($_GET['idaluguel'])){
			$idaluguel = $_GET['idaluguel'];
			$query = "UPDATE aluguel SET pg = 0 WHERE idaluguel =".$idaluguel;
			$sql = mysql_query($query) or die(mysql_error());
			echo "sucesso";
		}
?>
